<template>
  <div>
    <p>这是首页{{ name }}</p>
    <button @click="getdata">获取数据</button>
  </div>
</template>

<script setup>
import { ref } from "vue"
import axios from '../main'

    let name = ref('颖宁')

    let getdata = async()=>{
        let data = await axios.get('brk/aaa')
        console.log(data);
      }
</script>

<style less>
    p{
        font-size: 0.16rem;
        background-color: aqua;
    }
</style>